class CreateDailies < ActiveRecord::Migration
  def self.up
    create_table :dailies do |t|
      t.integer :day
      t.string :name
      t.text :content
      t.string :url
      t.string :img
      t.string :uname
      t.integer :status, :default => 0
      t.integer :daily_type_id
      t.integer :note_date_id
      t.boolean :use_wiki, :default => false
      t.timestamps
    end
  end

  def self.down
    drop_table :dailies
  end
end
